package com.logic.modular.game.battle.panel.skillEffect.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SkillEffectStatus {
    @ApiModelProperty("是否触发")
    private Integer isTrigger;

    @ApiModelProperty("技能效果状态 1:新增 2:刷新 3:覆盖 4:过期 5:已存储")
    private Integer status;

    @ApiModelProperty("触发失败原因")
    public Map<Integer, String> triggerFailReasons;

    private Integer status4Value;

    @ApiModelProperty("失败原因 1:数值冲突 2:技能类型冲突")
    public List<Integer> failReasons;

    @ApiModelProperty("累计触发次数")
    public Integer numberOfTriggers;

    @ApiModelProperty("本回合触发次数")
    public Integer numberOfTriggersThisRound;



    public void addTriggers(Integer number){
        this.numberOfTriggers += number;
        this.numberOfTriggersThisRound += number;
    }
}
